package com.example.texted.decoratorpattern;

public class Do {
    public static void main(String[] args) {
        Animal rat = new Rat();
        rat = new DecorateAnimal(rat, FlyFeature.class);
        rat = new DecorateAnimal(rat,DigFeature.class);
        rat.doStuff();
    }
}
